package de.thw.web.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import de.thw.web.dao.PermissionDAO;
import de.thw.web.model.Permission;

@Repository("RightDAO")
@Transactional
public class PermissionDAOImpl extends AbstractDAOImpl<Permission> implements PermissionDAO {

	public Permission load(String uid) {
		return super.load(Permission.class, uid);
	};

	public List<Permission> getAll() {
		return super.getAll("Permission");
	};

};